<?php

namespace App\Http\Requests\Admin;

use Illuminate\Foundation\Http\FormRequest;

class DictItemRequest extends FormRequest
{

    public function rules(): array
    {
        return [
            'label'   => 'required|string|max:100',
            'value'   => 'required|string|max:100',
            'status'   => 'nullable|in:0,1',
            'sort'    => 'nullable|integer|min:0',
            'tagType' => 'nullable|string|in:success,warning,info,primary,danger',
        ];
    }
}
